package com.iocup.keybastion.annotion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Description: basic auth验证注解
 * @Author: xyjxust
 * @Date: 2022/2/23 15:18
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface BasicAuth {
    String USERNAME = "username";
    String PASSWORD = "username";
    String TYPE = "type";

    /**
     * 用户名
     *
     * @return 默认数据
     */
    String username() default "";

    /**
     * 密码
     *
     * @return 默认数据
     */
    String password() default "";

    /**
     * 登录类型
     *
     * @return 默认数据
     */
    String type() default "";
}
